Use atoms instead of integers for constants in protocol definitions