Removed monkey-patching for astropy compatibility layer.