The restructuring of Railways will end departmentalism, Railway Minister Piyush Goyal said on Tuesday, after the Union Cabinet approved the downsizing of the strength of the Railway Board from eight to five, including the chairman, and merging its different cadres and departments into a single entity.