Fix superfluous codegeneration for mass functions.