Refactor motivation and background partially.