The only difference I see is that environments specifically allow null (to be removed), and single-element arrays of cookbook version constraints.   If we want to keep that for backward compatibility, we'll need to keep the function around - otherwise we could just use constraint_map_spec.