Move responsibility for managing props and state into the component.