stop mutating formula build object during dependency resolution

this will break a things, but the state that used to be held here is
going to be maintained by an external object used only during dependency
resolution.
rm more build option handling