Global environment variables for all parts


is it possible to define a set of environment variables in a snapcraft.yaml that are used by all parts?
I’m building a snap with a lot of parts, and have quite a lot of duplicate code, because I have to set the same set of build-environment variables for every single parts. Would be nice to only declare it once.

If that feature is not available, perhaps as an idea for implementation, it would be nice to set these variables like a fileset, define them in one place and use the entire set in a part if needed.