Side effects at import time is a smell. It would be better to wait till after the final setting is known