Remove duplication in deps.compile