Update configuration to new scheme in Astropy