Again, I'm starting to feel that I see something very like these two lines in a lot of places. Could we put a helper method somewhere?