He openly said that when he decided to fire him he was thinking about the Russia investigation. That would seem to indicate that being the deciding factor, not 'competence', which is something he would have fired him for months before had it been an issue. The only thing that changed after the election was the intensity of the FBI scrutiny towards his team, period.