Port slug func override from DSA, define identity funcs to avoid extra ifs