Why are those constants needed anyways? If you want a typesafe API you could use enums or a tuple type.