moved fill_missing_values and value_for_period from Entity to TimeFunction