move shared placeholder level code to separate file