Pushing forward matrix factorizations