Using an intermediate function "get-build-config" looks useless now.