Extract some commonality into a variable