Burnley midfielder Marvin Bartley has decided to leave Turf Moor with six months remaining on his contract.