Helper class to handle form composition