Move AP library into the package