Refactor sources.