GRAS-1225 Massive refactor of the checkbox plugin