Remove the lib directory since we no longer need it.
Remove unused functions.
Remove calls to removed functions.