Model definition utils