Miscellaneous refactors
Created by: stratact
Another refactor opportunity showed up when I saw that you could just either use iterators directly without having to collect into a Vec
allocation or just pass them between functions instead of slices when other iterators exist to again avoid said allocations.