Replacing the do-calculus with Bayes rule