I'd consider wrapping this into a function we can reuse elsewhere.