Improving type safety by replacing simple numeric constants by proper enums.