Rename main factory
Simplify keyValueToObject
More functional compiler chain