We should probably just pass `BuildFlags` around.