Could the above lines be put in a partial instead?