Move flashes to extends and combine to one file