I agree, duplication here is suboptimal. Therefore I just removed the `isWhitebox` method, because we actually don't need it.