Refactor CompatUtility::* (WIP).

Refs #5241