Modifying bed pieces

Here’s a cross-link to my solution, there have been a couple different posts where this has come up.