Don't generate factory if it's disabled in the generators settings