The Editor and the game are two separate programs. You cannot add dependencies to Editor modules from within your game. It works in the “Development Editor” configuration, because that is actually building an Editor. It does not work in the “Development” configuration, because that is building a game.
Texture factories are a concept in the Editor that does not belong into games. What are you trying to accomplish? Are you trying to load or generate textures at run-time?