Removing unnecessary scheduling task declaration