See 3f9a0a522f for justification.
3f9a0a522f
That way we can use it from other modules too. Just some shifting around, no change in behaviour.
Fixes more or less: https://bugs.freedesktop.org/show_bug.cgi?id=67474