Refactor purchase order views and revert Company to before_destroy