Any reason you don't just return animation directly? Seems like you don't really need an identity function.