Splitting single routing into constants and functions