Refactoring arguments passing for methods that support formatting