Add support for formatting with domain and use rules.