Moved Media state to utils