Reuse create_player function from views for pipeline