Need to figure out where to place the ReplaceTypeInExpression method.