I can fix this up, but I'm unsure about extracting const/immutable via typeof(func).