Moved commonly used UpdateRefArgs method to newly created RefArgsExtensions extension class.