factory_helper test suite style fixes.
factory refactoring + detail::factory_base::factory() implementation.