Refactoring viewBag element identification