Move protocol constants to a class to prevent global namespace pollution.