Moved common code out to "Pecker" framework.