Don't change order of constraints
Use flatten instead