Remove dependencies on "ape" and "rmisc"