Fixed syntax error. Removed unused lines in ElementFactoryController.