Yeah we can do that. This was pulled directly out of BaseBuild.js' `aggregateAttrs()` utility function.