Performance improvements for building a contraction.