code refactoring

1. remove resource data measure
2. remove deplicate class