moved workaround for BD runtime elements in editor to separate function