Refactor out variable for reuse