Remove the unnecessary function from the frontend example