Refactor GetValue() usages to val() function.