Dynamically reading bout_id and habitat_configuration when generating events