The absolute perfect way in my opinion is to rewrite both buddypress and bbpress into single wordpress code.