Refactor dependencies comparison
Refactor spec comparison