Extract allowed_methods to simple macro