Switching and terminal railroads