Move the method implementation up to `cmLocalCommonGenerator` to avoid duplicating it in each generator.