That's a big heap of duplication, where just making the last argument be <code> sp ? sp : pp->classes </code> would suffice.