Move requirements check to separate function
Move requirements check to separate function

Makes it more clear which requirements can be set on dependencies. Improves documentation. Also makes the code style checker shut up.

Ghostkeeper/Luna