Refactoring: maintype finder algo can be shared with CF tooling.