functions: Use method instead of global var

Apparently variables are not expected to be accessible outside the library
definition. Instead, return a static list of strings from a function.

Change-Id: Ic9ebcad2a58675038e2cfc1ce2ccb68c2c76831e
2 files changed