As long as they are still mostly green, they will be photosynthesising and making the energy your plant needs for flower growing.
Try to only cut them off once they are mostly yellow.
Just because they might look "ugly", does not mean that they are still not useful.
Remember too..........
more leaves = more energy being made = more potential growth.