Move view animator duplicate actions to separate class.
Fix minor code issues.