Generate composition expressions if needed