Remove redundant helper function