Moved loading custom post classes to plugin class