Added post_type_factory()