VariableFactory: Factor out code into more generic (helper) factory method.
VariableFactory,createSpaceVariable: Add factory method for ‘sp’ variable.