Small refactor in ResourceBundle class