Improve rulesExtraDependencies usage