RF: partial refactor of bdist_egg into method