player: refactor packages