Simplify code in mangler.