Refactor dependencies constraint representation.