Move errors to error package