Are the object factory (UFactory derived) must be plased in editor module?

I create UObject based class and UFactory based factory in project. When i try package project i get error
MainFrameActions: Packaging (Windows (64-bit)): UnrealBuildTool: D:\GAG\Unreal4\Epic Games\4.11\Engine\Source\Editor\UnrealEd\Classes\Factories/Factory.h(10): fatal error C1083: Cannot open include file: ‘Factory.generated.h’: No such file or directory

Should i move factory class in separate editor module? Or just tune dependencies?