def reuse_compose(compose, compose_to_reuse):
    """
    Changes the attribute of `compose` in a way it reuses
    the `compose_to_reuse`.
    """
    compose.reused_id = compose_to_reuse.id
    compose.time_to_expire = max(compose.time_to_expire, compose_to_reuse.
        time_to_expire)
    compose_to_reuse.time_to_expire = compose.time_to_expire
