def app_model_or_none(raw_model):
    """
    Transforms `raw_model` to its application model. Function can handle `None` value.
    """
    return raw_model.get_app_model() if raw_model is not None else None