Restructurize code in rowset.hpp for better readability