Why was Leon Trotsky no longer a threat to Stalin's rise to power?

Trotsky was executed
Trotsky was forced into exile
Trotsky was made a bishop in the church
Trotsky was given command of the military