We can use the bash feature ${!prefix@}/${!prefix*} which expands to all variables with the prefix. This avoids leaking build_options between sourced templates.