Refactor checkbox field

Bug fix: yes
Feature addition: no
Backwards compatibility break: yes
Unit test passes: yes
Behat scenarios passes: ~
Checkstyle issues: no
Documentation PR: ~
Fixes the following jira: ~