DAR-1263: simplify resize logic.