Refactor spec to set base title in a variable