Refactor checkbox field

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