Move formatting methods to BasicFormat.