refacotr resource target class