Craft: generating separate API classes.