Converting template manager,  global metaboxes to OOP