[ResourceBundle] remove duplicated function in spec build

Trying to fix the travis build