to do something exactly, precisely, or in a formulaic way.
Something done habitually or according to social norms, expectations, etc.