Refactor apm installation task to correlate with updated multiple install feature