refactor: Remove unnecessary use of maps.Values