Refactor definitions of pypy