move custom post type registry from theme to plugin