Refactor Animation out of sprite module.