Remove unneeded action.
Refactor ObjectFactoryAction and add test.