You can even move the part with the list comprehension inside the constants file and directly import it from there, you'll probably need again, like in tests.