Removed inner classes only used within model.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>