Removed unnecessary ObjectFactory bean from configuration