[ResourceBundle] remove duplicated function in spec build

Trying to fix the travis build

| Q             | A
| ------------- | ---
| Fixed tickets | none
| License       | MIT