Use "compact-object" instead of custom implementation (all tests passed)