remove ResourceFactory
fix phpcs