Maybe this warning should only be raised if those flags are set. Also, for any warnings in here, you should be using the Astropy logging framework, i.e.

```
from ... import log
log.warn(...)
log.info(...)
```