Joey Barton's tumultuous spell at Rangers was ended on Thursday as the club announced it had terminated the midfielder's contract with immediate effect.