def derive_attributes(user):
    """
    Derives attributes using activity data.
    """