Should we show an error if ref_name is not given, removing the non-optional None would be odd for arguments, all later would have to become optional also.