Remove unused number of thread status flag.
Move templated methods to `hpp` file.