Or better yet, the whole set of three here should be a reusable mixin, since the whole code snippet is duplicated in 3 places right now.