[DO_NOT_MERGE] Flatten 'gears' in application mongo record