If you have a large amount of animations, you just have to modulize your animation framework, then find a proper way to define animations with few lines, using structs for example.