Utility to create forms connected to L.Class instances