Refact some erb