Replace BranchProfiles in #if* with ConditionProfile

Signed-off-by: Stefan Marr <git@stefan-marr.de>