Move not clear code to a function