Remove `smart-forward' from the code.

Make a code work without any third party dependencies such as
smart-forward.