move constants inside directive