Call a function instead of duplication.