mergeImports = def =>
    def
      .update("aliases", aliases =>
        def
          .get("imports")
          .reduce(
            (aliases, i) =>
              aliases.merge(i.get("aliases", Immutable.OrderedMap())),
            Immutable.OrderedMap()
          )
          .merge(aliases)
      )
      .update("props", props =>
        def
          .get("imports")
          .reduce(
            (props, i) => props.merge(i.get("props", Immutable.OrderedMap())),
            Immutable.OrderedMap()
          )
          .merge(props)
      )
      .delete("imports")
Merge aliases/props from each import into the provided def