Original: He then went on to Stonyhurst College, but by the time he left the school in 1875, he had rejected Christianity to become an agnostic.
Simplified: He went to Stonyhurst College. He became an agnostic by the time he left.