Be more verbose with how we're filtering out metadata values

Rather than using map/select it might be easier for our devs to
understand if written as a loop.