Add BuildWrapper.dependencies(). Refactor