Refactoring cut FITS