Factor out extraneous variable