[PATCH 2/4] dmstyle: Move 3 structs where they are used and get rid of typedefs