Both!
In the scene where the Brotherhood Without Banners is accusing Sandor of all the crimes of the Lannisters in the Riverlands, there are people repeatedly referred to with terms like “Goodman X” and “Goodman Y”, does that reflect some kind of class position or is it just a courtesy?
Both!