Moving fragment code into presenter and model.