Split FTK code from server code