Refactor Scource code.