Refactorize checkbox option