Constraints and modularity