At this point in his Flyers career, Legein has just about zero value to the organization, and he's probably the one player with a contract that made the most sense to get rid of. He has plenty of skill but can't seem to put it all together, and at one point with the Phantoms last year he was sent to the ECHL, basically to be taught a lesson.
Now, the Flyers are at 49 contracts (with the contract of Marcel Noebels sliding to next season). When Sean Couturier plays in his 10th game with the club, he'll lose a year of his entry-level contract, and when he plays his 11th game with the club, he'll count against that contract limit.
The Flyers want to keep Couturier here all year. That's clearly happening now.