Revert "Add Average function"

This reverts commit c436b899e6d96b4cfe9e907de5cac311a5092d3b.