refactor(deps): group ifs in one