factory.py: refactoring push()