backbone code base refactoring