'Apply all relevant compatibility xforms.'

def get_alarm_props(self, props):

    kwargs = self.actions_to_urls(props)
    kwargs['type'] = self.alarm_type
    rule = {}
    for prop in (self.EVENT_TYPE, self.QUERY):
        if (prop in kwargs):
            del kwargs[prop]
    query = props.get(self.QUERY)
    if query:
        rule[self.QUERY] = query
    event_type = props.get(self.EVENT_TYPE)
    if event_type:
        rule[self.EVENT_TYPE] = event_type
    kwargs['event_rule'] = rule
    return kwargs
