ap factories