exclude: move function definition to .cpp

refs #1694

Change-Id: I9fb1a15339293617d57bfc703e950b97465d2c1b