moved pattern templates assigned to functions to subdirectory `/function`