Clean code for BoardContext class
Signed-off-by: Zhou Chang <achang.zhou@gmail.com>