The same applies here. Reuse the functions instead of duplicating them.