Utility to get values of constants of given prefix.