Split prltype into a common library and the actual tool