Re-organize require segment