Reducibility of beam equations in higher-dimensional spaces