VP-317: Moved the dependencies declaration

Moved the declaration of the dependencies variable adjacent to where it will be used.