Matthew Stafford and the Detroit Lions have agreed to part ways