Refactor out variables.