Extract sub activity classes