Flatten 'gears' in application mongo record