ni: extracted model facilities in their own module