Formatting of factory method