Best way to refactor this code

But its not enaugh, Rust need to have at least offset of this field, but Traits are not capable for this. When you explained your goal, I would say, that I will strongly advice split things into the smallest possible, and then compose them. Also get familiar with ECS concept, and Specs crate - its not a coincidence, that it is probably the most common pattern in gamedev.