General method for reducing the two‐body Dirac equation