Add compose functionality for APs and label functions.