Remove/deprecate unnecessary libraries/functions