Simplify addVariable for const variables