Remove mail frame duplicate code.