Simplifying a common pattern I use.