Refactor details region